package com.bcmusic.authorization.domain.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.Date;

/**
 * @ClassName : GetBoughtMusicVO  //类名
 * @Description :   //描述
 * @Author : YG  //作者
 * @Date: 2020-12-20 21:59  //时间
 */
@Data
public class GetBoughtMusicVO {
    @ApiModelProperty(value = "授权id",required = false)
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "authorization_id")
    private Integer authorizationId;//授权id

    @Column(name = "type")
    private Integer type;//音乐id

    @ApiModelProperty(value = "音乐id",required = false)
    @Column(name = "music_id")
    private Integer musicId;//音乐id

    @ApiModelProperty(value = "版权注册码",required = false)
    @Column(name = "authorization_code")
    private String authorizationCode;//版权注册码

    @ApiModelProperty(value = "授权类型",required = false)
    @Column(name = "allow_type")
    private String allowType;//授权类型

    @ApiModelProperty(value = "授权地域",required = false)
    @Column(name = "allow_region")
    private Integer allowRegion;//授权地域

    @ApiModelProperty(value = "开始时间",required = false)
    @Column(name = "authorization_start_time")
    private Date authorizationStartTime;//开始时间

    @ApiModelProperty(value = "截止时间",required = false)
    @Column(name = "authorization_end_time")
    private Date authorizationEndTime;//截止时间

    @ApiModelProperty(value = "被授权方名字",required = false)
    @Column(name = "owner_name")
    private String ownerName;//被授权方名字

    @ApiModelProperty(value = "被授权方id",required = false)
    @Column(name = "owner_number")
    private String ownerNumber;//被授权方id

    @ApiModelProperty(value = "0表示过期了，一表示正在生效，2表示还没有生效",required = false)
    @Column(name = "valid_status")
    private Integer validStatus;//0表示过期了，一表示正在生效，2表示还没有生效

    @ApiModelProperty(value = "",required = false)
    @Column(name = "create_time")
    private Date createTime;//

    @ApiModelProperty(value = "",required = false)
    @Column(name = "modification_time")
    private Date modificationTime;//


    private String musicName;

    private String registerCode;
}
